package com.example.entity.vo;

import com.example.entity.Comment;
import com.example.entity.User;
import lombok.Data;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

/**
 * @Description: 评论视图层
 * @Date: 2022/11/15 21:08
 * @Author: SinkDream
 */
@Data
public class CommentVO {
    private Long id;
    private Long userId;
    private String content;
    private Long likes;
    private Date createTime;
    private Long articleId;
    private Long parentCommentId;
    private int state;

    //回复评论
    private Integer replyCount;
    private List<CommentVO> replyComments = new ArrayList<>();
    private String parentContent;
    private String parentNickName;

    //User信息
    private String avatar;
    private String nickName;
}
